import java.util.Scanner;

public class Y {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入两个数字");
        int a=input.nextInt();
        int b=input.nextInt();
        System.out.println("a="+a);
        System.out.println("b="+b);
        int c=a+b;
        int d=a-b;
        int e=a*b;
        int f=a/b;
        System.out.println("c="+c);
        System.out.println("d="+d);
        System.out.println("e="+e);
        System.out.println("f="+f);
        int s1=c%d;
        int s2=d%e;
        int s3=e%f;
        int s4=f%c;
        System.out.println("余数1="+s1);
        System.out.println("余数2="+s2);
        System.out.println("余数3="+s3);
        System.out.println("余数4="+s4);





    }
}
